﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExaminationInfo.aspx.cs" Inherits="com.orange.examination.WebForm13" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" href="css/ExaminationInfo.css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        
         <fieldset class="FieldSet">
                <legend class="Legend">试题基本信息</legend>
        <div class="middle">
            <span<>选择科目：</span>
            <asp:DropDownList ID="ddlEkm" runat="server">
            </asp:DropDownList>
            <asp:Button ID="btnSerch" runat="server" Text="查看" OnClick="btnSerch_Click" />

            <span>当前搜索试题类别：</span>
            <asp:Label ID="lbltype" runat="server"></asp:Label>
        </div>

        <div class="bottom">
        <asp:GridView ID="gvExaminationInfo" runat="server" AutoGenerateColumns="False" CellPadding="3" Width="586px" OnRowDeleting="gvExaminationInfo_RowDeleting" AllowPaging="True" OnPageIndexChanging="gvExaminationInfo_PageIndexChanging">
            
            <Columns>
                <asp:BoundField DataField="testContent" HeaderText="题目" />

                <asp:TemplateField HeaderText="发布">
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                    <ItemTemplate>
                        <%#Getstatus(Convert.ToString(Eval("pub"))) %>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ExaminationDetail.aspx?Eid={0}"
                    HeaderText="查看/修改" Text="详细信息">
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:HyperLinkField>

                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" OnClientClick="return confirm('确认要删除吗？');"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>

            </Columns>
            <RowStyle ForeColor="#000066" Height="15px" HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Transparent" Font-Bold="False" ForeColor="Black" Height="15px" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
        </asp:GridView>
            </div>
        </fieldset>
    </form>
</body>
</html>

